﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SimpleRest.Core.Exceptions
{
    public class UriParameterMalformedException : WebExceptionBase
    {
        public UriParameterMalformedException(Type type, string parameterName)
            : base("Uri parameter type specified {" + parameterName + "} is not of the correct type.  Expected type " + type.Name) { }

        public override System.Net.HttpStatusCode StatusCode
        {
            get { return System.Net.HttpStatusCode.BadRequest; }
        }

        public override string ErrorCode
        {
            get { return null; }
        }
    }
}
